import QtQuick 2.12
import QtQuick.Window 2.12

Window {
    visible: true
    width: 700
    height: 700
    title: qsTr("Hello World")

    Wer{
        id:onewer
        x:100
        y:100
        z:4

    }

    Wer{
        id:twower
        x:100
        y:105
        z:3
        color: "#ef5b9c"
        scale: 0.95 //缩放
    }

    Wer{
        id:threewer
        x:100
        y:110
        z:2
        color: "#b7ba6b"
        scale: 0.9 //缩放

    }

    MouseArea {
        anchors.fill: parent
        onClicked: {
            animParalleDown.start()

        }
    }


    //展开组
    ParallelAnimation {
        id: animParalleDown
        NumberAnimation {
            id:twoweraniy
            target: twower
            from: 105; to: 170
            properties: "y"
            duration: 200
        }

        NumberAnimation {
            id:twoweraniscale
            target: twower
            from: 0.95; to: 1
            properties: "scale"
            duration: 200
        }

        NumberAnimation {
            id:threewerani
            target: threewer
            from: 110; to: 235
            properties: "y"
            duration: 200
        }

        NumberAnimation {
            id:threeweraniscale
            target: threewer
            from: 0.9; to: 1
            properties: "scale"
            duration: 200
        }
    }

}
